import Home from '../pages/Home/index'
import Layout from '../pages/Layout/index'
import Liat from '../pages/List/index'
import My from '../pages/My/index'
import Mywz from '../pages/My/Mywz/index'
import Myxq from '../pages/My/Myxq/index'
import Order from '../pages/Order/index'
import {createBrowserRouter} from 'react-router-dom'

export const router = createBrowserRouter([
  {
    path: '/',
    element: <Layout />,
    children: [
      {
        path: '/',
        element: <Home />
      },
      {
        path: '/list',
        element: <Liat />
      },
      {
        path: '/my',
        element: <My />,
        children: [
          {
            path: '/my/mywz',
            element: <Mywz />
          },
          {
            path: '/my/myxq',
            element: <Myxq />
          }
        ]
      },
      {
        path: '/order',
        element: <Order />
      }
    ]
  }
])
export default router